/*
package NiuKe;

import java.util.Scanner;

*/
/**
 * @Description:
 * @Author: Hanzao
 * @Date: 2022/06/12/16:44
 *//*

public class HJ5 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        String[] split = s.split("0x");
        long l = Long.parseLong(split[1], 16);
        System.out.println(l);
    }
}
*/
